package com.kuaiyin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kuaiyin.dto.RequestDTO;
import com.kuaiyin.entity.Request;
import com.kuaiyin.utils.PageResult;
import com.kuaiyin.vo.RequestVO;

import java.util.List;
import java.util.function.Consumer;

/**
 * <p>
 * 接口请求定义表（支持动态模板） 服务类
 * </p>
 *
 * @author ng
 * @since 2025-04-25
 */
public interface IRequestService extends IService<Request> {

    void savaRequest(RequestDTO requestDTO);

    RequestVO getById(Long id);

    void updateRequest(Long id, RequestDTO requestDTO);

    List<RequestVO> getRequestList();

    void removeById(Long id);

    PageResult<RequestVO> getRequestPage(Integer page, Integer size, Consumer<LambdaQueryWrapper<Request>> condition);
}
